<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		    <base target="_self"> 
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>系统帮助</title>
        <link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
		<script language="javascript" src="<%=applicationPath%>/js/main.js"></script>
	</head>
	<body>
		
	    <html:form styleId="helpForm" action="listHelp.do?method=getSystemHelpList" styleClass="simple">
	    
	    <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12"></img> 系统帮助</td>
		    </tr>
		  </table>
		
			
			
			  <table cellspacing="3" cellpadding="0" width="98%" align="center"  border="0" class="kuang2 margtb5 hei12">
		<tr>
		    <td width="3%" align="right">标题：</td>
	           <td width="10%">
		               <html:text property="helpTitle" value="${help.helpTitle }"  size="20"></html:text>
		                         		   		   </td>
                   		  

                   		  <td width="22%"><input class="buttonbg"   id="but_query" type="submit" value="<bean:message key='com.syc.common.allowance.query'  bundle="allowance"/>" name="but_query" /></td>
		</tr>
	</table>
	    
	     
		 <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margb5">
             <tr>
				<td>
					<fmt:bundle basename="com.application.systemmanager.struts.ApplicationResources">
				        <display:table name="helpList" class="simple" id="help" partialList="true" style="width:100%; text-align:center;" defaultsort="1" defaultorder="descending" size="resultSize"  > 
						<display:setProperty name="sort.amount" value="helpList"/>
						<display:column  sortable="true" titleKey="com.application.systemmanager.notice_title" style="width:100%; text-align:center;">
						   <a onclick="showNotice('${help.id}');" href="#" >${help.helpTitle}</a> 
				        </display:column>
						
					</display:table>
	              </fmt:bundle>

				</td>
			</tr>
		</table>
		<p><p>
			   <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
		  <input class="buttonbg" id="but_return" type="button" value="关闭" name="but_return" onClick="javascript:window.close();"/>
  </tr>
</table>
     </html:form>
	</body>
</html>
<script>

	
function validateSelect(){ 
    var count = 0;
    var jysBox = $s("id");
    for(var i=0;i<jysBox.length;i++){
		if(jysBox[i].checked){
        	count++;
		}
	}
    return count;
}

//查看公告
function view(){
	var result = validateSelect();
	if(result==0){
		alert("请选择一条记录！");
		return;
	}else if(result>1){
	    alert("一次只能查看一条记录！");
		return;
	}else{
		document.forms[0].action="viewHelp.do?method=viewHelp";
	    document.forms[0].submit();
	}
}

//查看通知
function showNotice(id){ 
window.open ('viewHelp.do?method=viewHelp&id='+id, 'newwindow', 'height=730, width=1000, top=0, left=0,toolbar=no, menubar=no, scrollbars=yes,resizable=no,location=no, status=no')
   
}
</script>
